home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimpenums.h.z / gimpenums.h
Encoding:
C/C++ Source or Header  |  1999-07-21  |  2.7 KB  |  118 lines

  1. /* LIBGIMP - The GIMP Library                                                   
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball                
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Library General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.             
  8.  *                                                                              
  9.  * This library is distributed in the hope that it will be useful,              
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of               
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU            
  12.  * Library General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Library General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */                                                                             
  19. #ifndef __GIMP_ENUMS_H__
  20. #define __GIMP_ENUMS_H__
  21.  
  22.  
  23. typedef enum
  24. {
  25.   RGB     = 0,
  26.   GRAY    = 1,
  27.   INDEXED = 2
  28. } GImageType;
  29.  
  30. typedef enum
  31. {
  32.   RGB_IMAGE      = 0,
  33.   RGBA_IMAGE     = 1,
  34.   GRAY_IMAGE     = 2,
  35.   GRAYA_IMAGE    = 3,
  36.   INDEXED_IMAGE  = 4,
  37.   INDEXEDA_IMAGE = 5
  38. } GDrawableType;
  39.  
  40. typedef enum
  41. {
  42.   NORMAL_MODE       = 0,
  43.   DISSOLVE_MODE     = 1,
  44.   MULTIPLY_MODE     = 3,
  45.   SCREEN_MODE       = 4,
  46.   OVERLAY_MODE      = 5,
  47.   DIFFERENCE_MODE   = 6,
  48.   ADDITION_MODE     = 7,
  49.   SUBTRACT_MODE     = 8,
  50.   DARKEN_ONLY_MODE  = 9,
  51.   LIGHTEN_ONLY_MODE = 10,
  52.   HUE_MODE          = 11,
  53.   SATURATION_MODE   = 12,
  54.   COLOR_MODE        = 13,
  55.   VALUE_MODE        = 14
  56. } GLayerMode;
  57.  
  58. typedef enum
  59. {
  60.   BG_IMAGE_FILL,
  61.   WHITE_IMAGE_FILL,
  62.   TRANS_IMAGE_FILL
  63. } GFillType;
  64.  
  65. typedef enum
  66. {
  67.   PARAM_INT32,
  68.   PARAM_INT16,
  69.   PARAM_INT8,
  70.   PARAM_FLOAT,
  71.   PARAM_STRING,
  72.   PARAM_INT32ARRAY,
  73.   PARAM_INT16ARRAY,
  74.   PARAM_INT8ARRAY,
  75.   PARAM_FLOATARRAY,
  76.   PARAM_STRINGARRAY,
  77.   PARAM_COLOR,
  78.   PARAM_REGION,
  79.   PARAM_DISPLAY,
  80.   PARAM_IMAGE,
  81.   PARAM_LAYER,
  82.   PARAM_CHANNEL,
  83.   PARAM_DRAWABLE,
  84.   PARAM_SELECTION,
  85.   PARAM_BOUNDARY,
  86.   PARAM_PATH,
  87.   PARAM_STATUS,
  88.   PARAM_END
  89. } GParamType;
  90.  
  91. typedef enum
  92. {
  93.   PROC_PLUG_IN = 1,
  94.   PROC_EXTENSION = 2,
  95.   PROC_TEMPORARY = 3
  96. } GProcedureType;
  97.  
  98. /* This enum is mirrored in "app/plug_in.c", make sure
  99.  *  they are identical or bad things will happen.
  100.  */
  101. typedef enum
  102. {
  103.   RUN_INTERACTIVE    = 0x0,
  104.   RUN_NONINTERACTIVE = 0x1,
  105.   RUN_WITH_LAST_VALS = 0x2
  106. } GRunModeType;
  107.  
  108. typedef enum
  109. {
  110.   STATUS_EXECUTION_ERROR,
  111.   STATUS_CALLING_ERROR,
  112.   STATUS_PASS_THROUGH,
  113.   STATUS_SUCCESS
  114. } GStatusType;
  115.  
  116.  
  117. #endif /* __GIMP_ENUMS_H__ */
  118.